package com.jeeinc.oa.utils;

import java.util.HashMap;
import java.util.Map;

public class ResultUtils {
	
	public static Map<String, Object> result(boolean success, String message){
		return result(success, message, null);
	}
	
	public static Map<String, Object> result(boolean success, String message, Object data){
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("success", success);
		result.put("message", message);
		if(data!=null){
			result.put("data", data);
		}
		return result;
	}
	

}
